package com.manage.dao;

import com.manage.pojo.Building;

import java.sql.SQLException;
import java.util.List;

public interface BuildingDao {
    //连表查询所有
    public List<Building> findAll() throws SQLException;
    //    连表分页查询
    public List<Building> findAll(int page, int limit) throws SQLException;
    //小区连带删除楼栋
    public int deleteBuildingByHid(int hid) throws SQLException;
//删除楼栋
    int deleteBuildingByBid(int b)throws SQLException ;
//添加楼栋
    int insertBuilding(Building building)throws SQLException;
}

